<?php
class Country extends CI_Model{

	/* table name */
	private $tbl_name = 'country';

	/* columns name */
	private $col_name = 'name';

	public function __contruct(){

		parent::__construct();	
	}

	public function getAllCountry(){

		$queryString = "SELECT * FROM $this->tbl_name ORDER BY $this->col_name";
		$query = $this->db->query($queryString);
		
		return $query->result();
	}
}
?>